package be.ac.ua.ecampus.uacmat;

import java.util.Calendar;

public class Util {
	public static int currentMonth() {
		return Calendar.getInstance().get(Calendar.MONTH);
	}
	
	public static int currentYear() {
		return Calendar.getInstance().get(Calendar.YEAR);
	}
	
	public static int currentAcYear() {
		return (Util.currentMonth() > 7 ? Util.currentYear() : Util.currentYear()-1);
	}
}
